<?php $this->load->view('public/header');?>
<style type="text/css">
html body{background-color: #30333f;}
</style>
<div class="container-fluid">
	<div class="row">
		<div class="col-md-3 col-md-offset-4">
			<div class="long_main pr">
				<form class="login_form" method="post" action="<?php echo site_url('authentication/login')?>">
					<h3 class="text-center">网站管理平台</h3>
					<div class="form-group">
						<div class="input-group">
							<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
							<label class="control-label sr-only" for="username">用户名</label>
							<input type="text" class="form-control input-lg" id="username" name="username" placeholder="请填写用户名" autocomplete="off">
						</div>
						<?php echo form_error("username",'<span class="text-danger">','</span>');?>
					</div>
					<div class="form-group">
						<div class="input-group">
							<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
							<label class="control-label sr-only" for="password">密码</label>
							<input type="password" class="form-control input-lg" id="password" name="password" placeholder="请填写密码" autocomplete="off">
						</div> 
						<?php echo form_error("password",'<span class="text-danger">','</span>');?>
					</div>
					<div class="form-group">
						<div class="input-group">
							<span class="input-group-addon"><i class="glyphicon glyphicon-check">验证码</i></span>
							<label class="control-label sr-only" for="verify">验证码</label>
							<input type="text" class="form-control input-lg" id="verify" name="verify" placeholder="请填写验证码" autocomplete="off">
							<span class="pull-right form-control-feedback" style="pointer-events:auto;"><a href="javascript:void(0);" id="reload-captcha" onclick="getcode('codeshow')" >换一张</a></span>
						</div> 
						<?php echo form_error("verify",'<span class="text-danger">','</span>');?>
					</div>
					<div class="form-group" id="codeshow">
					</div>
					<div class="form-group">
						<button type="submit" class="btn btn-success btn-lg btn-block">登录</button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<?php $this->load->view('public/footer');?>
<script type="text/javascript">
	$(function(){
	    getcode('codeshow',310);
	})
</script>